package com.gxnzd.communityelderly.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
import lombok.Data;

/**
 * @TableName drugs
 */
@TableName(value ="drugs")
@Data
public class Drugs  {
    @TableId(value="drugs_id",type = IdType.AUTO)
    private Integer drugsId;

    private String drugsName;

    private String manufacturer;

    private Date expirationDate;

    private String dosageForm;

    private String strength;

    private String packageSize;

    private BigDecimal price;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField(fill = FieldFill.INSERT)
    private Long createUser;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;

    //是否删除
    @TableLogic
    private Integer isDeleted;

    private static final long serialVersionUID = 1L;
}